@import "../variable";

nav,main {
  transition: -webkit-transform 150ms ease-out;
  transition: transform 150ms ease-out;
  transition: transform 150ms ease-out, -webkit-transform 150ms ease-out;
}
nav {
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 16em;
  background-color: #353441;
  -webkit-transform: translateX(-16em);
  transform: translateX(-16em);
  &.menu-active {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  &.menu-hover {
    -webkit-transform: translateX(-15em);
    transform: translateX(-15em);
  }
  h1 {
    z-index: 100;
    display: block;
    position: absolute;
    top: 35px;
    right: -150px;
    height: 60px;
    width: 150px;
    line-height: 60px;
    font-size: 1.5em;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    background-color: #353441;
    cursor: pointer;
    &:hover {
      color: #353441;
      background: #fff;
    }
  }
  ul {
    margin: 0;
    padding: 0;
  }
  li {
    display: inline-block;
    padding: 0 1em;
    width: 100%;
    height: 60px;
    color: #fff;
    line-height: 60px;
    background-color: #353441;
    &:nth-of-type(2n) {
      background-color: #3a3947;
    }
    &:hover {
      background: #fff;
      color: #000;
      a{
        display: block;
        text-decoration: none;
      }
    }
  }

  .backIndx{
    bottom: 0;
    margin: 0;
    padding: 0 1em;
    width: 100%;
    height: 60px;
    color: #fff;
    line-height: 60px;
    background: #3a3947;
    &:hover{
      background: #fff;
      color: #000;
    }
    a{
      width: 100%;
    }
  }

}
main {
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #3e4751 0%, #25303c 100%);
  -webkit-transform-origin: 0% 50%;
  transform-origin: 0% 50%;
  &:after {
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(33, 33, 45, 0.5));
    visibility: hidden;
    opacity: 0;
    transition: opacity 150ms ease-out, visibility 0s 150ms;
  }
  &.menu-active {
    border-radius: .001px;
    -webkit-transform: translateX(16em) rotateY(15deg);
    transform: translateX(16em) rotateY(15deg);
    &:after {
      visibility: visible;
      opacity: 1;
      transition: opacity 150ms ease-out, visibility 0s;
    }
  }
  &.menu-hover {
    border-radius: .001px;
    -webkit-transform: translateX(1em) rotateY(1deg);
    transform: translateX(1em) rotateY(1deg);
  }
  section {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    padding: 1em 4em;
    max-width: 680px;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.5);
  }
}
section {
  h1 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2em;
  }
  p {
    display: inline-block;
    margin: 16px 0;
  }
}
